<%@page import="helpers.StringHelper"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="entities.Directory"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%
Directory directory = (Directory) request.getAttribute("directory");
List<String> domains = directory.getDomains();

//Set content for seo
String title = "Directory " + directory.getId();
String description = "Directory site with word first is " + directory.getId() + ". There are many site in directory as :" + StringHelper.listToString(domains, ", ", 5);
String keywords = "directory " + directory.getId() + ", directory domain, web site analysis, website traffic details, server information, website ranking info, check information my domain" ;
String url = UrlHelper.getServerUrl(request) + "/dir/" + directory.getId();
%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>

<script type="text/javascript" src="/js/directory.js"></script>

<script type="text/javascript">
var c = "<%=directory.getId()%>";
</script>	
	
	<div id="content">
		<jsp:include page="/elements/search_bar.jsp" />
		
		<div class="row">
			<!-- Left Content BEGIN -->
			<div class="span9">
				<section class="static-page">
					<div class="box1 block">
						<h3 class="title">Directory</h3>
						<div class="row-fluid f-info">
							<div class="span12">
								<div class="directory clearafter title">
	                            	<a href="/dir/a">a</a>
	                            	<a href="/dir/b">b</a>
	                            	<a href="/dir/c">c</a>
	                            	<a href="/dir/d">d</a>
	                            	<a href="/dir/e">e</a>
	                            	<a href="/dir/f">f</a>
	                            	<a href="/dir/g">g</a>
	                            	<a href="/dir/h">h</a>
	                            	<a href="/dir/i">i</a>
	                            	<a href="/dir/j">j</a>
	                            	<a href="/dir/k">k</a>
	                            	<a href="/dir/l">l</a>
	                            	<a href="/dir/m">m</a>
	                            	<a href="/dir/n">n</a>
	                            	<a href="/dir/o">o</a>
	                            	<a href="/dir/p">p</a>
	                            	<a href="/dir/q">q</a>
	                            	<a href="/dir/r">r</a>
	                            	<a href="/dir/s">s</a>
	                            	<a href="/dir/t">t</a>
	                            	<a href="/dir/u">u</a>
	                            	<a href="/dir/v">v</a>
	                            	<a href="/dir/w">w</a>
	                            	<a href="/dir/x">x</a>
	                            	<a href="/dir/y">y</a>
	                            	<a href="/dir/z">z</a>
	                            	<a href="/dir/0">0</a>
	                            	<a href="/dir/1">1</a>
	                            	<a href="/dir/2">2</a>
	                            	<a href="/dir/3">3</a>
	                            	<a href="/dir/4">4</a>
	                            	<a href="/dir/5">5</a>
	                            	<a href="/dir/6">6</a>
	                            	<a href="/dir/7">7</a>
	                            	<a href="/dir/8">8</a>
	                            	<a href="/dir/9">9</a>
	                            </div>
								<ul class="list-domain horizontal clearfix">
									<% for (int i = 0; i < domains.size(); i++) { %>
									<li><a href="/domain/<%=domains.get(i)%>"><%=domains.get(i)%></a></li>
									<% } %>
								</ul>
							</div>
						</div>
					</div>
				</section>
			</div>
			<!-- Left Content END -->
			
			<jsp:include page="/elements/right.jsp" />
		</div>
		
		
	</div>
		
<jsp:include page="/layouts/footer.jsp" />